package com.cdyx.outsideprescription.config;

import com.cdyx.outsideprescription.BO.EpcInfoBo;
import com.cdyx.outsideprescription.mapper.TbEpcinfoMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
//@Slf4j
@Component
public class EcpConfig {
    @Autowired
    private TbEpcinfoMapper epcinfoMapper;
    public static EpcInfoBo epcInfoBo;
    @PostConstruct
    public EpcInfoBo init(){
        epcInfoBo=epcinfoMapper.getMessage();
     //   log.info(epcInfoBo.toString());
        return epcInfoBo;
    }
}
